
$(document).ready(function() {    
    $("#Login-Button").hover(		
        //Mouseover, fadeIn the hidden hover class	
        function() {
            $(this).children('div').stop(true, true).fadeIn('fast');
        }, 
	
        //Mouseout, fadeOut the hover class
        function() {
            $(this).children('div').stop(true, true).fadeOut('normal');		
        });
        
    $("#Login-Button").click(		
        //Mouseover, fadeIn the hidden hover class	
        function() {
            $(this).fadeOut('normal');
            setTimeout(function(){
                $("#Login-Form").fadeIn('normal')
            }, 500);
        });
        
    $(".Shortcut-Button").hover(		
        //Mouseover, fadeIn the hidden hover class	
        function() {
            $(this).parent('li').stop(true, true).css('background', 'url(lib/theme/images/shortcut-hover.png)');
        }, 
	
        //Mouseout, fadeOut the hover class
        function() {
            $(this).parent('li').stop(true, true).css('background', 'none');		
        });
        
    $("#Notification-Button").click(
        function() {
            $("#Notification-Container").slideToggle("medium");
			
        }
        );
	
    $("#Notification-Button").hover(		
        //Mouseover, fadeIn the hidden hover class	
        function() {	
                    
            //$(".Header-ButtonHover").fadeIn('1000');
            $(this).siblings('div.Header-ButtonHover').stop(true, true).fadeIn('fast');				
        }, 
	
        //Mouseout, fadeOut the hover class
        function() {
            $(this).siblings('div.Header-ButtonHover').stop(true, true).fadeOut('1000');		
        });
        
    $("#Menu-Button").click(
        function() {
            $("#Menu-List").slideToggle("medium");
        }
        );
     
     
    $("#Menu .title").click(
        function() {
            if($(this).attr("href")){
                tTarget= $(this).attr("href");
                if(tTarget)
                    window.location = tTarget;
            }
            else {
                $(this).children("ul").slideToggle("medium");
            }
        }
        );
    $("#Menu .submenu").click(
        function() {
            if($(this).attr("href")){
                tTarget= $(this).attr("href");
                if(tTarget)
                    window.location = tTarget;
            }
            
        }
        );
            
    $("#Menu-Button").hover(		
        //Mouseover, fadeIn the hidden hover class	
        function() {	
                    
            //$(".Header-ButtonHover").fadeIn('1000');
            $(this).siblings('div.Header-ButtonHover').stop(true, true).fadeIn('fast');				
        }, 
	
        //Mouseout, fadeOut the hover class
        function() {
            $(this).siblings('div.Header-ButtonHover').stop(true, true).fadeOut('1000');		
        });
        
        
    $("#newsticker-jcarousellite").jCarouselLite({
        vertical: true,
        hoverPause:true,
        visible: 1,
        auto:3000,
        speed:1000
    });
        
        
        
       	
	
});
